<?php
$images = Admin::loadReferenceImages();
?>

<? if(count($images)>0): ?>
<script type="text/javascript" src="/javascript/gallery-1.0.0.min.js"></script>
<script type="text/javascript">
$(function(){
	$("ul.gallery").gallery();
})
</script>
<ul class="gallery" style="display:none">
	<? foreach($images as $image): ?>
	<li><img src="/image/sta-uradismo/<?= $this->request->params[1] ?>/<?= $image ?>" alt="<?= substr($image, strpos($image, "_")+1, strrpos($image, ".")) ?>" /></li>
	<? endforeach; ?>
</ul>
<? else: ?>
<div style="margin-top:180px;font-size:30px;color:#ccc">Тренутно нема садржаја.</div>
<? endif; ?>